import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
import index from '@/components/index'
import login from '@/components/login'
import reg from '@/components/reg'
import vipHome from '@/components/vipHome'
import cz from '@/components/cz'
import my from '@/components/mycentent'
import jc from '@/components/jc'
import kf from '@/components/kf'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'index',
        component: index
    }, {
        path: '/home/:id',
        name: 'home',
        component: home
    }, {
        path: '/login',
        name: 'login',
        component: login
    }, {
        path: '/reg',
        name: 'reg',
        component: reg
    }, {
        path: '/vipHome',
        name: 'vipHome',
        component: vipHome
    }, {
        path: '/cz',
        name: 'cz',
        component: cz
    }, {
        path: '/my',
        name: 'my',
        component: my
    }, {
        path: '/jc',
        name: 'jc',
        component: jc
    }, {
        path: '/kf',
        name: 'kf',
        component: kf
    }]
})